import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { OrderGoodsEntity } from '../../entity/goods';
import { OrderGoodsService } from '../../service/goods';

/**
 * 订单商品
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: OrderGoodsEntity,
  service: OrderGoodsService,
  pageQueryOp: {},
})
export class AdminOrderGoodsController extends BaseController {
  @Inject()
  orderGoodsService: OrderGoodsService;
}
